package annotationtablemodel.suppx.ems.annotatedtable;

import javax.swing.JTable;

/**
 * @author Dmitry Savchenko
 */
public class AnnotatedTable extends JTable{

    public AnnotatedTable() {
        init();
    }

    private void init() {
    }
    
    public static AnnotatedTable createAnnotatedTable(Class clazz) throws Exception{
        AnnotatedTable table=new AnnotatedTable();
        table.setModel(createAnnotatedTableModel(clazz));
        return table;
    }
    
    public static AnnotatedTableModel createAnnotatedTableModel(Class clazz) throws NoSuchMethodException, Exception{
        return new AnnotatedTableModel(clazz);
    }
}
